package com.cloudxingkong.dianyinke.Student.Fragment;

import android.content.SharedPreferences;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.cloudxingkong.dianyinke.NewTeacher.Fragment.BaseFragment;
import com.cloudxingkong.dianyinke.R;
import com.cloudxingkong.dianyinke.Student.bean.CourseBookingEntity;
import com.cloudxingkong.dianyinke.Uri.studentUri.StudentUri;
import com.cloudxingkong.dianyinke.Uri.teacherUri.ThisUri;
import com.google.gson.Gson;

import org.xutils.common.Callback;
import org.xutils.http.RequestParams;
import org.xutils.x;

/**
 * 老师资料Fragment
 */

public class TeacherDynamicFragment extends BaseFragment {

    private TextView tvExp,tvHonor,tvWork;
    public TeacherDynamicFragment(){}

    public static Fragment getInstance(String epc,String glory,String present){
        TeacherDynamicFragment fragment=new TeacherDynamicFragment();
        Bundle bundle = new Bundle();
        bundle.putString("dyEpc",epc);
        bundle.putString("dyGlory",glory);
        bundle.putString("dyPresent",present);
        fragment.setArguments(bundle);
        return fragment;
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View view=inflater.inflate(R.layout.fragment_teacher_dynamic,null);

        tvExp= (TextView) view.findViewById(R.id.tv_guowangjingli);
        tvHonor= (TextView) view.findViewById(R.id.tv_guangrongqiang);
        tvWork= (TextView) view.findViewById(R.id.tv_xianrengongzuo);

        Bundle bundle = getArguments();
        if (bundle != null) {
            tvExp.setText(bundle.getString("dyEpc"));
            tvHonor.setText(bundle.getString("dyGlory"));
            tvWork.setText(bundle.getString("dyPresent"));
        }
        return view;
    }

}
